import request from './request.js'
const {
	get,
	post
} = request

export const httpReq = {
	/**
	 * 登录
	 */
	wxLogin: data => post('/api/auth/user/login', data, false), //用户登录
	/**
	 * 停车套餐管理
	 */
	queryPageRecommend:(params)=>get("/api/home/recommend", params, false),
	getList: (params) => get("/api/home/parkingPackage/query", params, false),
	parkingDetails: (params) => get(params),
	savePackageOrderDetails: (params) => post("/api/order/save/package", params),
	/**
	 * 停车场的管理
	 */
	getParkingList: (params) => get("/api/home/parkingIot/query", params, false),
	parkingSpaceDetails: (params) => get(params),
	parkingApplyDetails: (params) => get(params),
	confirmOrderDetails: (params) => get(params),
	confirmOrderDate: (params) => get(params),
	saveBookingOrderDetails: (params) => post("/api/order/save/parking", params),

	/**
	 * 车牌管理
	 */
	getLicensePlateList: (params) => get("/api/licensePlate/app/query", params),
	saveLicensePlate: (params) => post("/api/licensePlate/app/save", params),
	setDefaultLicensePlate: (params) => post("/api/licensePlate/app/set/default", params),

	/**
	 * 消息发布
	 */
	getAllMessageList: (params) => get("/api/message/query", params),
	getQueryOneselfList: (params) => get("/api/message/app/queryOneself", params),
	saveSelfMessageApp: (params) => post("/api/message/app/save", params),

	/**
	 * 车场加盟
	 */
	getQueryOneselfListCar: (params) => get("/api/franchise/app/queryOneself", params),
	saveFranchiseSave: (params) => post("/api/franchise/app/save", params),

	/**
	 * 订单管理
	 */
	getQueryOneselfListOrder: (params) => get("/api/order/query/oneself", params), //获取自己的订单
	confirmSelfOrderDetails: (params) => get(params),
	cancelSureOrder: (params) => post(params),
	sureReturnOrder: (params) => post(params),

	/**
	 * 上传图片
	 */
	uploadFileImg: (params) => post("/api/file/upload", params, false, "multipart/form-data"),



	addContent: (params) => post("/api/memory/addContent", params), //添加备忘录
	getMonthList: (params) => get("/api/memory/getMonthList", params), //获取当月的备忘录
	finish: (params) => post("/api/memory/finishId", params), //完成备忘录
	deleteMemory: (params) => post("/api/memory/finishdel", params), //删除备忘录
	/**
	 * 纪念日
	 */
	addAnniversaries: (params) => post("/api/anniversaries/addDayMsg", params), //添加纪念日
	getAnniversariesList: (params) => get("/api/anniversaries/getAnniversaries", params), //获取纪念日列表
	deleteAnniversaries: (params) => post("/api/anniversaries/deleteAnniversaries", params), //删除纪念日
}
